package com.infocollect.project.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.infocollect.project.api.entity.TappActionRoleEntity;
import com.infocollect.project.api.req.DelActionRoleReq;
import com.infocollect.project.api.req.TappActionRoleReq;
import com.infocollect.project.api.vo.ActionRoleVO;
import com.infocollect.project.api.vo.UserButtonActionVO;
import com.infocollect.project.form.vo.R;

import java.util.List;

/**
 *角色菜单按钮权限
 */
public interface ITappActionRoleService extends IService<TappActionRoleEntity> {
    /**
     * 角色菜单按钮
     * @param req
     * @return
     */
    R<String> saveActionRole(TappActionRoleReq req);
    /**
     *  获取用户拥有的按钮权限
     * @param
     * @return
     */
    List<UserButtonActionVO> getCurrentMenuAction();
    /**
     * 根据ID 删除角色菜单动作权限
     * @param
     * @return
     */
    R<String> delActionRole(DelActionRoleReq param);
    /**
     * 根据角色ID 获取角色菜单动作权限
     * @param
     * @return
     */
    List<ActionRoleVO>  queryByRoleMenuId(Long roleId,Long menuId);
}
